package com.bw.common.adapter

import com.bw.common.entity.BannerEntity
import com.bw.image.imageLoader
import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder

class ImageBannerAdapter(data:MutableList<BannerEntity>):BannerImageAdapter<BannerEntity>(data) {
    override fun onBindView(holder: BannerImageHolder, data: BannerEntity, position: Int, size: Int) {
        imageLoader.loadResourceImg(holder.imageView,data.resId,holder.imageView)
    }

}